﻿<UserControl x:Class="Songhay.Silverlight.BiggestBox.Views.FooterView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    xmlns:m="clr-namespace:Songhay.Silverlight.BiggestBox.ViewModels">

    <UserControl.Resources>

        <m:FooterViewModel x:Key="FooterViewModelDataSource" d:IsDataSource="True"/>

        <Style x:Key="FooterPanelStyle" TargetType="Grid">
            <Setter Property="Background" Value="#FFE0EEE0" />
        </Style>

        <Style x:Key="FooterTextStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="12" />
            <Setter Property="Margin" Value="6,0,0,0" />
            <Setter Property="TextWrapping" Value="NoWrap" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>

    </UserControl.Resources>

    <Grid Style="{StaticResource FooterPanelStyle}">
        <TextBlock
            Style="{StaticResource FooterTextStyle}"
            Text="{Binding AssemblyInformationDisplayLine, Source={StaticResource FooterViewModelDataSource}}" />
    </Grid>
</UserControl>
